package com.note.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class ComNnUn {
    private Integer id;
    private String contents;
    private Integer noteid;
    private Integer userid;
    private Integer likes;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    private String comname;
    private String notetitle;
    private String notuname;

    public ComNnUn() {
    }

    public ComNnUn(Integer id, String contents, Integer noteid, Integer userid, Integer likes, Date createtime, String comname, String notetitle, String notuname) {
        this.id = id;
        this.contents = contents;
        this.noteid = noteid;
        this.userid = userid;
        this.likes = likes;
        this.createtime = createtime;
        this.comname = comname;
        this.notetitle = notetitle;
        this.notuname = notuname;
    }

    @Override
    public String toString() {
        return "ComNnUn{" +
                "id=" + id +
                ", contents='" + contents + '\'' +
                ", noteid=" + noteid +
                ", userid=" + userid +
                ", likes=" + likes +
                ", createtime=" + createtime +
                ", comname='" + comname + '\'' +
                ", notname='" + notetitle + '\'' +
                ", uname='" + notuname + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Integer getNoteid() {
        return noteid;
    }

    public void setNoteid(Integer noteid) {
        this.noteid = noteid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getComname() {
        return comname;
    }

    public void setComname(String comname) {
        this.comname = comname;
    }

    public String getNotetitle() {
        return notetitle;
    }

    public void setNotetitle(String notetitle) {
        this.notetitle = notetitle;
    }

    public String getNotuname() {
        return notuname;
    }

    public void setNotuname(String notuname) {
        this.notuname = notuname;
    }
}
